import request from '@/utils/request';

//纠错分页查询
export function queryCorrectionList(data) {
	return request({
		method: 'get',
		url: '/sysErrorCorrection/query',
		params: data,
	})
}

//新增纠错
export function addCorrection(data) {
	return request({
		method: 'post',
		url: '/sysErrorCorrection/add',
		data,
	})
}

//修改纠错
export function updateCorrection(data) {
	return request({
		method: 'post',
		url: '/sysErrorCorrection/update',
		data,
	})
}

//删除纠错
export function deleteCorrection(id) {
	return request({
		method: 'get',
		url: '/sysErrorCorrection/delete/' + id
	})
}

//纠错详情
export function queryCorrection(id) {
	return request({
		method: 'get',
		url: '/sysErrorCorrection/query/' + id
	})
}